<%=@document.title%><p/>
<h5>撰写时间:<%=@document.create_date%>&nbsp作者:<%=@document.member.nickname%></h5><p/>
<div id="content" name="content">
<%=@document.content%>
</div>
<%= link_to 'Edit', edit_document_path(@document) %> |
<%= link_to 'Back', documents_path %>
<p/>
<%=show_children(@children)%>
<p/>
<%form_for :replay,:url=>documents_path do |f|%>
<%=f.text_field :title%>
<%=f.text_area :content%>
<%=f.hidden_field :parent_id,:value=>@document.id%>
<p/>
<%= submit_tag '回复当前主题' %>
<%end%>